import Vue from "vue";
import Vuex from "vuex";
Vue.use(Vuex);
const state = {
  dialogFormVisible: false,
  userInfo: "" || JSON.parse(localStorage.getItem("userInfo")),
};
const getters = {};
const actions = {};
const mutations = {
  VISIBLE: (state, isShow) => {
    state.dialogFormVisible = isShow;
    // console.log(1);
  },
  UPDATE_USERINFO: (state, userInfo) => {
    state.userInfo = userInfo;
  },
};
export default new Vuex.Store({
  state,
  getters,
  actions,
  mutations,
});
